package com.hspedu.poly_.objectpoly_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/22
 * @time 14:43
 */
public class PolyObject {
    public static void main(String[] args) {
        Animal animal = new Dog();
        animal.cry();
        animal = new Cat();
        animal.cry();
    }
}
